package com.tledu.oop2;

public class OOP05 {
    public static void main(String[] args) {
        Student student = new Student();
        student.school = "学校";
        // 即使在当前包内也拿不到
//        student.major
        student.sayMajor();
        Person person = new Person();
        person.setName("天亮");
        System.out.println(person.getName());
        person.sleep();
    }
}
